<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gimpvectors: GIMP 3 Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GIMP 3 Library Reference Manual">
<link rel="up" href="libgimp-image.html" title="Manipulating Images and their Properties">
<link rel="prev" href="libgimp3-gimppainttools.html" title="gimppainttools">
<link rel="next" href="libgimp-data.html" title="Data Objects">
<meta name="generator" content="GTK-Doc V1.33.0 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GimpVectors.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GimpVectors.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="libgimp3-gimppainttools.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libgimp-data.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GimpVectors"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GimpVectors.top_of_page"></a>gimpvectors</span></h2>
<p>gimpvectors — Functions for querying and manipulating vectors.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GimpVectors.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="GimpVectors.html" title="gimpvectors"><span class="returnvalue">GimpVectors</span></a> *
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-get-by-id" title="gimp_vectors_get_by_id ()">gimp_vectors_get_by_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GimpVectors.html" title="gimpvectors"><span class="returnvalue">GimpVectors</span></a> *
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-new" title="gimp_vectors_new ()">gimp_vectors_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GimpVectors.html" title="gimpvectors"><span class="returnvalue">GimpVectors</span></a> *
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-new-from-text-layer" title="gimp_vectors_new_from_text_layer ()">gimp_vectors_new_from_text_layer</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GimpVectors.html" title="gimpvectors"><span class="returnvalue">GimpVectors</span></a> *
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-copy" title="gimp_vectors_copy ()">gimp_vectors_copy</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gint</span> *
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-get-strokes" title="gimp_vectors_get_strokes ()">gimp_vectors_get_strokes</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-remove-stroke" title="gimp_vectors_remove_stroke ()">gimp_vectors_remove_stroke</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-export-to-file" title="gimp_vectors_export_to_file ()">gimp_vectors_export_to_file</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-export-to-string" title="gimp_vectors_export_to_string ()">gimp_vectors_export_to_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-import-from-file" title="gimp_vectors_import_from_file ()">gimp_vectors_import_from_file</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-import-from-string" title="gimp_vectors_import_from_string ()">gimp_vectors_import_from_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gint</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-stroke-new-from-points" title="gimp_vectors_stroke_new_from_points ()">gimp_vectors_stroke_new_from_points</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-stroke-close" title="gimp_vectors_stroke_close ()">gimp_vectors_stroke_close</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gdouble</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-stroke-get-length" title="gimp_vectors_stroke_get_length ()">gimp_vectors_stroke_get_length</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../html/libgimpbase3-gimpbaseenums.html#GimpVectorsStrokeType"><span class="returnvalue">GimpVectorsStrokeType</span></a>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-stroke-get-points" title="gimp_vectors_stroke_get_points ()">gimp_vectors_stroke_get_points</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-stroke-get-point-at-dist" title="gimp_vectors_stroke_get_point_at_dist ()">gimp_vectors_stroke_get_point_at_dist</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gdouble</span> *
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-stroke-interpolate" title="gimp_vectors_stroke_interpolate ()">gimp_vectors_stroke_interpolate</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-stroke-scale" title="gimp_vectors_stroke_scale ()">gimp_vectors_stroke_scale</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-stroke-translate" title="gimp_vectors_stroke_translate ()">gimp_vectors_stroke_translate</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-stroke-flip" title="gimp_vectors_stroke_flip ()">gimp_vectors_stroke_flip</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-stroke-flip-free" title="gimp_vectors_stroke_flip_free ()">gimp_vectors_stroke_flip_free</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-stroke-rotate" title="gimp_vectors_stroke_rotate ()">gimp_vectors_stroke_rotate</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-bezier-stroke-conicto" title="gimp_vectors_bezier_stroke_conicto ()">gimp_vectors_bezier_stroke_conicto</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-bezier-stroke-cubicto" title="gimp_vectors_bezier_stroke_cubicto ()">gimp_vectors_bezier_stroke_cubicto</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-bezier-stroke-lineto" title="gimp_vectors_bezier_stroke_lineto ()">gimp_vectors_bezier_stroke_lineto</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gint</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-bezier-stroke-new-ellipse" title="gimp_vectors_bezier_stroke_new_ellipse ()">gimp_vectors_bezier_stroke_new_ellipse</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gint</span>
</td>
<td class="function_name">
<a class="link" href="GimpVectors.html#gimp-vectors-bezier-stroke-new-moveto" title="gimp_vectors_bezier_stroke_new_moveto ()">gimp_vectors_bezier_stroke_new_moveto</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GimpVectors.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    GObject
    <span class="lineart">╰──</span> <a class="link" href="GimpItem.html" title="gimpitem">GimpItem</a>
        <span class="lineart">╰──</span> GimpVectors
</pre>
</div>
<div class="refsect1">
<a name="GimpVectors.description"></a><h2>Description</h2>
<p>Functions for querying and manipulating vectors.</p>
</div>
<div class="refsect1">
<a name="GimpVectors.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gimp-vectors-get-by-id"></a><h3>gimp_vectors_get_by_id ()</h3>
<pre class="programlisting"><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="returnvalue">GimpVectors</span></a> *
gimp_vectors_get_by_id (<em class="parameter"><code><span class="type">gint32</span> vectors_id</code></em>);</pre>
<p>Returns a <a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> representing <em class="parameter"><code>vectors_id</code></em>
. This function
calls <a class="link" href="GimpItem.html#gimp-item-get-by-id" title="gimp_item_get_by_id ()"><code class="function">gimp_item_get_by_id()</code></a> and returns the item if it is vectors
or <code class="literal">NULL</code> otherwise.</p>
<div class="refsect3">
<a name="gimp-vectors-get-by-id.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>vectors_id</p></td>
<td class="parameter_description"><p>The vectors id.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-get-by-id.returns"></a><h4>Returns</h4>
<p>a <a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> for <em class="parameter"><code>vectors_id</code></em>
or <code class="literal">NULL</code> if <em class="parameter"><code>vectors_id</code></em>
does not represent a valid
vectors. The object belongs to libgimp and you must not
modify or unref it. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-new"></a><h3>gimp_vectors_new ()</h3>
<pre class="programlisting"><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="returnvalue">GimpVectors</span></a> *
gimp_vectors_new (<em class="parameter"><code><a class="link" href="GimpImage.html" title="gimpimage"><span class="type">GimpImage</span></a> *image</code></em>,
                  <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);</pre>
<p>Creates a new empty vectors object.</p>
<p>Creates a new empty vectors object. The vectors object needs to be
added to the image using <a class="link" href="GimpImage.html#gimp-image-insert-vectors" title="gimp_image_insert_vectors ()"><code class="function">gimp_image_insert_vectors()</code></a>.</p>
<div class="refsect3">
<a name="gimp-vectors-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>The image.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>the name of the new vector object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-new.returns"></a><h4>Returns</h4>
<p>the current vector object, 0 if no vector exists in the image. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-new-from-text-layer"></a><h3>gimp_vectors_new_from_text_layer ()</h3>
<pre class="programlisting"><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="returnvalue">GimpVectors</span></a> *
gimp_vectors_new_from_text_layer (<em class="parameter"><code><a class="link" href="GimpImage.html" title="gimpimage"><span class="type">GimpImage</span></a> *image</code></em>,
                                  <em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Creates a new vectors object from a text layer.</p>
<p>Creates a new vectors object from a text layer. The vectors object
needs to be added to the image using <a class="link" href="GimpImage.html#gimp-image-insert-vectors" title="gimp_image_insert_vectors ()"><code class="function">gimp_image_insert_vectors()</code></a>.</p>
<div class="refsect3">
<a name="gimp-vectors-new-from-text-layer.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>The image.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-new-from-text-layer.returns"></a><h4>Returns</h4>
<p>The vectors of the text layer. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-copy"></a><h3>gimp_vectors_copy ()</h3>
<pre class="programlisting"><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="returnvalue">GimpVectors</span></a> *
gimp_vectors_copy (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>);</pre>
<p>Copy a vectors object.</p>
<p>This procedure copies the specified vectors object and returns the
copy.</p>
<div class="refsect3">
<a name="gimp-vectors-copy.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object to copy.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-copy.returns"></a><h4>Returns</h4>
<p>The newly copied vectors object. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-get-strokes"></a><h3>gimp_vectors_get_strokes ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span> *
gimp_vectors_get_strokes (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                          <em class="parameter"><code><span class="type">gint</span> *num_strokes</code></em>);</pre>
<p>List the strokes associated with the passed path.</p>
<p>Returns an Array with the stroke-IDs associated with the passed
path.</p>
<div class="refsect3">
<a name="gimp-vectors-get-strokes.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>num_strokes</p></td>
<td class="parameter_description"><p>The number of strokes returned. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-get-strokes.returns"></a><h4>Returns</h4>
<p>List of the strokes belonging to the path.
The returned value must be freed with <code class="function">g_free()</code>. </p>
<p><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=num_strokes][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> gint32][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-remove-stroke"></a><h3>gimp_vectors_remove_stroke ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_remove_stroke (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                            <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>);</pre>
<p>remove the stroke from a vectors object.</p>
<p>Remove the stroke from a vectors object.</p>
<div class="refsect3">
<a name="gimp-vectors-remove-stroke.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-remove-stroke.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-export-to-file"></a><h3>gimp_vectors_export_to_file ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_export_to_file (<em class="parameter"><code><a class="link" href="GimpImage.html" title="gimpimage"><span class="type">GimpImage</span></a> *image</code></em>,
                             <em class="parameter"><code><span class="type">GFile</span> *file</code></em>,
                             <em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>);</pre>
<p>save a path as an SVG file.</p>
<p>This procedure creates an SVG file to save a Vectors object, that
is, a path. The resulting file can be edited using a vector graphics
application, or later reloaded into GIMP. If you pass 0 as the
'vectors' argument, then all paths in the image will be exported.</p>
<div class="refsect3">
<a name="gimp-vectors-export-to-file.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>The image.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>file</p></td>
<td class="parameter_description"><p>The SVG file to create.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object to be saved, or 0 for all in the image.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-export-to-file.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-export-to-string"></a><h3>gimp_vectors_export_to_string ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> *
gimp_vectors_export_to_string (<em class="parameter"><code><a class="link" href="GimpImage.html" title="gimpimage"><span class="type">GimpImage</span></a> *image</code></em>,
                               <em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>);</pre>
<p>Save a path as an SVG string.</p>
<p>This procedure works like <a class="link" href="GimpVectors.html#gimp-vectors-export-to-file" title="gimp_vectors_export_to_file ()"><code class="function">gimp_vectors_export_to_file()</code></a> but creates
a string rather than a file. The contents are a NUL-terminated
string that holds a complete XML document. If you pass 0 as the
'vectors' argument, then all paths in the image will be exported.</p>
<div class="refsect3">
<a name="gimp-vectors-export-to-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>The image.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object to save, or 0 for all in the image.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-export-to-string.returns"></a><h4>Returns</h4>
<p>A string whose contents are a complete SVG document.
The returned value must be freed with <code class="function">g_free()</code>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-import-from-file"></a><h3>gimp_vectors_import_from_file ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_import_from_file (<em class="parameter"><code><a class="link" href="GimpImage.html" title="gimpimage"><span class="type">GimpImage</span></a> *image</code></em>,
                               <em class="parameter"><code><span class="type">GFile</span> *file</code></em>,
                               <em class="parameter"><code><span class="type">gboolean</span> merge</code></em>,
                               <em class="parameter"><code><span class="type">gboolean</span> scale</code></em>,
                               <em class="parameter"><code><span class="type">gint</span> *num_vectors</code></em>,
                               <em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> ***vectors</code></em>);</pre>
<p>Import paths from an SVG file.</p>
<p>This procedure imports paths from an SVG file. SVG elements other
than paths and basic shapes are ignored.</p>
<div class="refsect3">
<a name="gimp-vectors-import-from-file.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>The image.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>file</p></td>
<td class="parameter_description"><p>The SVG file to import.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>merge</p></td>
<td class="parameter_description"><p>Merge paths into a single vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>scale</p></td>
<td class="parameter_description"><p>Scale the SVG to image dimensions.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>num_vectors</p></td>
<td class="parameter_description"><p>The number of newly created vectors. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The list of newly created vectors. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=num_vectors][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GimpVectors][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-import-from-file.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-import-from-string"></a><h3>gimp_vectors_import_from_string ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_import_from_string (<em class="parameter"><code><a class="link" href="GimpImage.html" title="gimpimage"><span class="type">GimpImage</span></a> *image</code></em>,
                                 <em class="parameter"><code>const <span class="type">gchar</span> *string</code></em>,
                                 <em class="parameter"><code><span class="type">gint</span> length</code></em>,
                                 <em class="parameter"><code><span class="type">gboolean</span> merge</code></em>,
                                 <em class="parameter"><code><span class="type">gboolean</span> scale</code></em>,
                                 <em class="parameter"><code><span class="type">gint</span> *num_vectors</code></em>,
                                 <em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> ***vectors</code></em>);</pre>
<p>Import paths from an SVG string.</p>
<p>This procedure works like <a class="link" href="GimpVectors.html#gimp-vectors-import-from-file" title="gimp_vectors_import_from_file ()"><code class="function">gimp_vectors_import_from_file()</code></a> but takes
a string rather than reading the SVG from a file. This allows you to
write scripts that generate SVG and feed it to GIMP.</p>
<div class="refsect3">
<a name="gimp-vectors-import-from-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>The image.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>string</p></td>
<td class="parameter_description"><p>A string that must be a complete and valid SVG document.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>length</p></td>
<td class="parameter_description"><p>Number of bytes in string or -1 if the string is NULL terminated.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>merge</p></td>
<td class="parameter_description"><p>Merge paths into a single vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>scale</p></td>
<td class="parameter_description"><p>Scale the SVG to image dimensions.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>num_vectors</p></td>
<td class="parameter_description"><p>The number of newly created vectors. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The list of newly created vectors. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=num_vectors][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GimpVectors][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-import-from-string.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-stroke-new-from-points"></a><h3>gimp_vectors_stroke_new_from_points ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>
gimp_vectors_stroke_new_from_points (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                                     <em class="parameter"><code><a href="../html/libgimpbase3-gimpbaseenums.html#GimpVectorsStrokeType"><span class="type">GimpVectorsStrokeType</span></a> type</code></em>,
                                     <em class="parameter"><code><span class="type">gint</span> num_points</code></em>,
                                     <em class="parameter"><code>const <span class="type">gdouble</span> *controlpoints</code></em>,
                                     <em class="parameter"><code><span class="type">gboolean</span> closed</code></em>);</pre>
<p>Adds a stroke of a given type to the vectors object.</p>
<p>Adds a stroke of a given type to the vectors object. The coordinates
of the control points can be specified. For now only strokes of the
type GIMP_VECTORS_STROKE_TYPE_BEZIER are supported. The control
points are specified as a pair of float values for the x- and
y-coordinate. The Bezier stroke type needs a multiple of three
control points. Each Bezier segment endpoint (anchor, A) has two
additional control points (C) associated. They are specified in the
order CACCACCAC...</p>
<div class="refsect3">
<a name="gimp-vectors-stroke-new-from-points.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>type</p></td>
<td class="parameter_description"><p>type of the stroke (always GIMP_VECTORS_STROKE_TYPE_BEZIER for now).</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>num_points</p></td>
<td class="parameter_description"><p>The number of elements in the array, i.e. the number of controlpoints in the stroke * 2 (x- and y-coordinate).</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>controlpoints</p></td>
<td class="parameter_description"><p>List of the x- and y-coordinates of the control points. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=num_points][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> gdouble]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>closed</p></td>
<td class="parameter_description"><p>Whether the stroke is to be closed or not.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-stroke-new-from-points.returns"></a><h4>Returns</h4>
<p> The stroke ID of the newly created stroke.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-stroke-close"></a><h3>gimp_vectors_stroke_close ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_stroke_close (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                           <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>);</pre>
<p>closes the specified stroke.</p>
<p>Closes the specified stroke.</p>
<div class="refsect3">
<a name="gimp-vectors-stroke-close.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-stroke-close.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-stroke-get-length"></a><h3>gimp_vectors_stroke_get_length ()</h3>
<pre class="programlisting"><span class="returnvalue">gdouble</span>
gimp_vectors_stroke_get_length (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                                <em class="parameter"><code><span class="type">gdouble</span> precision</code></em>);</pre>
<p>Measure the length of the given stroke.</p>
<p>Measure the length of the given stroke.</p>
<div class="refsect3">
<a name="gimp-vectors-stroke-get-length.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>precision</p></td>
<td class="parameter_description"><p>The precision used for the approximation.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-stroke-get-length.returns"></a><h4>Returns</h4>
<p> The length (in pixels) of the given stroke.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-stroke-get-points"></a><h3>gimp_vectors_stroke_get_points ()</h3>
<pre class="programlisting"><a href="../html/libgimpbase3-gimpbaseenums.html#GimpVectorsStrokeType"><span class="returnvalue">GimpVectorsStrokeType</span></a>
gimp_vectors_stroke_get_points (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> *num_points</code></em>,
                                <em class="parameter"><code><span class="type">gdouble</span> **controlpoints</code></em>,
                                <em class="parameter"><code><span class="type">gboolean</span> *closed</code></em>);</pre>
<p>returns the control points of a stroke.</p>
<p>returns the control points of a stroke. The interpretation of the
coordinates returned depends on the type of the stroke. For Gimp 2.4
this is always a bezier stroke, where the coordinates are the
control points.</p>
<div class="refsect3">
<a name="gimp-vectors-stroke-get-points.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>num_points</p></td>
<td class="parameter_description"><p>The number of floats returned. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>controlpoints</p></td>
<td class="parameter_description"><p>List of the control points for the stroke (x0, y0, x1, y1, ...). </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=num_points][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> gdouble][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>closed</p></td>
<td class="parameter_description"><p>Whether the stroke is closed or not. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-stroke-get-points.returns"></a><h4>Returns</h4>
<p> type of the stroke (always GIMP_VECTORS_STROKE_TYPE_BEZIER for now).</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-stroke-get-point-at-dist"></a><h3>gimp_vectors_stroke_get_point_at_dist ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_stroke_get_point_at_dist (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                                       <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                                       <em class="parameter"><code><span class="type">gdouble</span> dist</code></em>,
                                       <em class="parameter"><code><span class="type">gdouble</span> precision</code></em>,
                                       <em class="parameter"><code><span class="type">gdouble</span> *x_point</code></em>,
                                       <em class="parameter"><code><span class="type">gdouble</span> *y_point</code></em>,
                                       <em class="parameter"><code><span class="type">gdouble</span> *slope</code></em>,
                                       <em class="parameter"><code><span class="type">gboolean</span> *valid</code></em>);</pre>
<p>Get point at a specified distance along the stroke.</p>
<p>This will return the x,y position of a point at a given distance
along the stroke. The distance will be obtained by first digitizing
the curve internally and then walking along the curve. For a closed
stroke the start of the path is the first point on the path that was
created. This might not be obvious. If the stroke is not long
enough, a \"valid\" flag will be FALSE.</p>
<div class="refsect3">
<a name="gimp-vectors-stroke-get-point-at-dist.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>dist</p></td>
<td class="parameter_description"><p>The given distance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>precision</p></td>
<td class="parameter_description"><p>The precision used for the approximation.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x_point</p></td>
<td class="parameter_description"><p>The x position of the point. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>y_point</p></td>
<td class="parameter_description"><p>The y position of the point. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>slope</p></td>
<td class="parameter_description"><p>The slope (dy / dx) at the specified point. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>valid</p></td>
<td class="parameter_description"><p>Indicator for the validity of the returned data. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-stroke-get-point-at-dist.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-stroke-interpolate"></a><h3>gimp_vectors_stroke_interpolate ()</h3>
<pre class="programlisting"><span class="returnvalue">gdouble</span> *
gimp_vectors_stroke_interpolate (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                                 <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                                 <em class="parameter"><code><span class="type">gdouble</span> precision</code></em>,
                                 <em class="parameter"><code><span class="type">gint</span> *num_coords</code></em>,
                                 <em class="parameter"><code><span class="type">gboolean</span> *closed</code></em>);</pre>
<p>returns polygonal approximation of the stroke.</p>
<p>returns polygonal approximation of the stroke.</p>
<div class="refsect3">
<a name="gimp-vectors-stroke-interpolate.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>precision</p></td>
<td class="parameter_description"><p>The precision used for the approximation.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>num_coords</p></td>
<td class="parameter_description"><p>The number of floats returned. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>closed</p></td>
<td class="parameter_description"><p>Whether the stroke is closed or not. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-stroke-interpolate.returns"></a><h4>Returns</h4>
<p>List of the coords along the path (x0, y0, x1, y1, ...).
The returned value must be freed with <code class="function">g_free()</code>. </p>
<p><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=num_coords][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> gdouble][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-stroke-scale"></a><h3>gimp_vectors_stroke_scale ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_stroke_scale (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                           <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                           <em class="parameter"><code><span class="type">gdouble</span> scale_x</code></em>,
                           <em class="parameter"><code><span class="type">gdouble</span> scale_y</code></em>);</pre>
<p>scales the given stroke.</p>
<p>Scale the given stroke.</p>
<div class="refsect3">
<a name="gimp-vectors-stroke-scale.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>scale_x</p></td>
<td class="parameter_description"><p>Scale factor in x direction.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>scale_y</p></td>
<td class="parameter_description"><p>Scale factor in y direction.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-stroke-scale.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-stroke-translate"></a><h3>gimp_vectors_stroke_translate ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_stroke_translate (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                               <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                               <em class="parameter"><code><span class="type">gint</span> off_x</code></em>,
                               <em class="parameter"><code><span class="type">gint</span> off_y</code></em>);</pre>
<p>translate the given stroke.</p>
<p>Translate the given stroke.</p>
<div class="refsect3">
<a name="gimp-vectors-stroke-translate.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>off_x</p></td>
<td class="parameter_description"><p>Offset in x direction.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>off_y</p></td>
<td class="parameter_description"><p>Offset in y direction.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-stroke-translate.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-stroke-flip"></a><h3>gimp_vectors_stroke_flip ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_stroke_flip (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                          <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                          <em class="parameter"><code><a href="../html/libgimpbase3-gimpbaseenums.html#GimpOrientationType"><span class="type">GimpOrientationType</span></a> flip_type</code></em>,
                          <em class="parameter"><code><span class="type">gdouble</span> axis</code></em>);</pre>
<p>flips the given stroke.</p>
<p>Rotates the given stroke around given center by angle (in degrees).</p>
<div class="refsect3">
<a name="gimp-vectors-stroke-flip.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>flip_type</p></td>
<td class="parameter_description"><p>Flip orientation, either vertical or horizontal.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>axis</p></td>
<td class="parameter_description"><p>axis coordinate about which to flip, in pixels.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-stroke-flip.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-stroke-flip-free"></a><h3>gimp_vectors_stroke_flip_free ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_stroke_flip_free (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                               <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                               <em class="parameter"><code><span class="type">gdouble</span> x1</code></em>,
                               <em class="parameter"><code><span class="type">gdouble</span> y1</code></em>,
                               <em class="parameter"><code><span class="type">gdouble</span> x2</code></em>,
                               <em class="parameter"><code><span class="type">gdouble</span> y2</code></em>);</pre>
<p>flips the given stroke about an arbitrary axis.</p>
<p>Flips the given stroke about an arbitrary axis. Axis is defined by
two coordinates in the image (in pixels), through which the flipping
axis passes.</p>
<div class="refsect3">
<a name="gimp-vectors-stroke-flip-free.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x1</p></td>
<td class="parameter_description"><p>X coordinate of the first point of the flipping axis.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y1</p></td>
<td class="parameter_description"><p>Y coordinate of the first point of the flipping axis.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x2</p></td>
<td class="parameter_description"><p>X coordinate of the second point of the flipping axis.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y2</p></td>
<td class="parameter_description"><p>Y coordinate of the second point of the flipping axis.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-stroke-flip-free.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-stroke-rotate"></a><h3>gimp_vectors_stroke_rotate ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_stroke_rotate (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                            <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                            <em class="parameter"><code><span class="type">gdouble</span> center_x</code></em>,
                            <em class="parameter"><code><span class="type">gdouble</span> center_y</code></em>,
                            <em class="parameter"><code><span class="type">gdouble</span> angle</code></em>);</pre>
<p>rotates the given stroke.</p>
<p>Rotates the given stroke around given center by angle (in degrees).</p>
<div class="refsect3">
<a name="gimp-vectors-stroke-rotate.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>center_x</p></td>
<td class="parameter_description"><p>X coordinate of the rotation center.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>center_y</p></td>
<td class="parameter_description"><p>Y coordinate of the rotation center.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>angle</p></td>
<td class="parameter_description"><p>angle to rotate about.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-stroke-rotate.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-bezier-stroke-conicto"></a><h3>gimp_vectors_bezier_stroke_conicto ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_bezier_stroke_conicto (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                                    <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                                    <em class="parameter"><code><span class="type">gdouble</span> x0</code></em>,
                                    <em class="parameter"><code><span class="type">gdouble</span> y0</code></em>,
                                    <em class="parameter"><code><span class="type">gdouble</span> x1</code></em>,
                                    <em class="parameter"><code><span class="type">gdouble</span> y1</code></em>);</pre>
<p>Extends a bezier stroke with a conic bezier spline.</p>
<p>Extends a bezier stroke with a conic bezier spline. Actually a cubic
bezier spline gets added that realizes the shape of a conic bezier
spline.</p>
<div class="refsect3">
<a name="gimp-vectors-bezier-stroke-conicto.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x0</p></td>
<td class="parameter_description"><p>The x-coordinate of the control point.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y0</p></td>
<td class="parameter_description"><p>The y-coordinate of the control point.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x1</p></td>
<td class="parameter_description"><p>The x-coordinate of the end point.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y1</p></td>
<td class="parameter_description"><p>The y-coordinate of the end point.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-bezier-stroke-conicto.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-bezier-stroke-cubicto"></a><h3>gimp_vectors_bezier_stroke_cubicto ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_bezier_stroke_cubicto (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                                    <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                                    <em class="parameter"><code><span class="type">gdouble</span> x0</code></em>,
                                    <em class="parameter"><code><span class="type">gdouble</span> y0</code></em>,
                                    <em class="parameter"><code><span class="type">gdouble</span> x1</code></em>,
                                    <em class="parameter"><code><span class="type">gdouble</span> y1</code></em>,
                                    <em class="parameter"><code><span class="type">gdouble</span> x2</code></em>,
                                    <em class="parameter"><code><span class="type">gdouble</span> y2</code></em>);</pre>
<p>Extends a bezier stroke with a cubic bezier spline.</p>
<p>Extends a bezier stroke with a cubic bezier spline.</p>
<div class="refsect3">
<a name="gimp-vectors-bezier-stroke-cubicto.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x0</p></td>
<td class="parameter_description"><p>The x-coordinate of the first control point.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y0</p></td>
<td class="parameter_description"><p>The y-coordinate of the first control point.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x1</p></td>
<td class="parameter_description"><p>The x-coordinate of the second control point.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y1</p></td>
<td class="parameter_description"><p>The y-coordinate of the second control point.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x2</p></td>
<td class="parameter_description"><p>The x-coordinate of the end point.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y2</p></td>
<td class="parameter_description"><p>The y-coordinate of the end point.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-bezier-stroke-cubicto.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-bezier-stroke-lineto"></a><h3>gimp_vectors_bezier_stroke_lineto ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_vectors_bezier_stroke_lineto (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                                   <em class="parameter"><code><span class="type">gint</span> stroke_id</code></em>,
                                   <em class="parameter"><code><span class="type">gdouble</span> x0</code></em>,
                                   <em class="parameter"><code><span class="type">gdouble</span> y0</code></em>);</pre>
<p>Extends a bezier stroke with a lineto.</p>
<p>Extends a bezier stroke with a lineto.</p>
<div class="refsect3">
<a name="gimp-vectors-bezier-stroke-lineto.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stroke_id</p></td>
<td class="parameter_description"><p>The stroke ID.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x0</p></td>
<td class="parameter_description"><p>The x-coordinate of the lineto.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y0</p></td>
<td class="parameter_description"><p>The y-coordinate of the lineto.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-bezier-stroke-lineto.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-bezier-stroke-new-ellipse"></a><h3>gimp_vectors_bezier_stroke_new_ellipse ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>
gimp_vectors_bezier_stroke_new_ellipse
                               (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                                <em class="parameter"><code><span class="type">gdouble</span> x0</code></em>,
                                <em class="parameter"><code><span class="type">gdouble</span> y0</code></em>,
                                <em class="parameter"><code><span class="type">gdouble</span> radius_x</code></em>,
                                <em class="parameter"><code><span class="type">gdouble</span> radius_y</code></em>,
                                <em class="parameter"><code><span class="type">gdouble</span> angle</code></em>);</pre>
<p>Adds a bezier stroke describing an ellipse the vectors object.</p>
<p>Adds a bezier stroke describing an ellipse the vectors object.</p>
<div class="refsect3">
<a name="gimp-vectors-bezier-stroke-new-ellipse.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x0</p></td>
<td class="parameter_description"><p>The x-coordinate of the center.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y0</p></td>
<td class="parameter_description"><p>The y-coordinate of the center.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>radius_x</p></td>
<td class="parameter_description"><p>The radius in x direction.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>radius_y</p></td>
<td class="parameter_description"><p>The radius in y direction.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>angle</p></td>
<td class="parameter_description"><p>The angle the x-axis of the ellipse (radians, counterclockwise).</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-bezier-stroke-new-ellipse.returns"></a><h4>Returns</h4>
<p> The resulting stroke.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-vectors-bezier-stroke-new-moveto"></a><h3>gimp_vectors_bezier_stroke_new_moveto ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>
gimp_vectors_bezier_stroke_new_moveto (<em class="parameter"><code><a class="link" href="GimpVectors.html" title="gimpvectors"><span class="type">GimpVectors</span></a> *vectors</code></em>,
                                       <em class="parameter"><code><span class="type">gdouble</span> x0</code></em>,
                                       <em class="parameter"><code><span class="type">gdouble</span> y0</code></em>);</pre>
<p>Adds a bezier stroke with a single moveto to the vectors object.</p>
<p>Adds a bezier stroke with a single moveto to the vectors object.</p>
<div class="refsect3">
<a name="gimp-vectors-bezier-stroke-new-moveto.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>vectors</p></td>
<td class="parameter_description"><p>The vectors object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x0</p></td>
<td class="parameter_description"><p>The x-coordinate of the moveto.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y0</p></td>
<td class="parameter_description"><p>The y-coordinate of the moveto.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-vectors-bezier-stroke-new-moveto.returns"></a><h4>Returns</h4>
<p> The resulting stroke.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.0</div>
</body>
</html>